package com.crecheng.shop.DAO;

public class UserCartData extends BaseData{
    int uid;
    int sid;
    int gid;
    int num;

    public void set(int uid, int sid, int gid, int num) {
        this.uid = uid;
        this.sid = sid;
        this.gid = gid;
        this.num = num;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "UserCartData{" +
                "id=" + id +
                ", uid=" + uid +
                ", sid=" + sid +
                ", gid=" + gid +
                ", num=" + num +
                '}';
    }
}
